#include "Stdafx.h"

using namespace IceMaths;

Plane& Plane::Set(const Point& p0, const Point& p1, const Point& p2)
{
	Point Edge0 = p1 - p0;
	Point Edge1 = p2 - p0;
	
	n = Edge0 ^ Edge1;
	n.Normalize();
	
	d = -(p0 | n);
	
	return *this;
}
 